/*
 * XML Type:  Account
 * Namespace: http://webservices.samples.blog.com
 * Java type: com.blog.samples.webservices.Account
 *
 * Automatically generated - do not modify.
 */
package com.blog.samples.webservices.impl;
/**
 * An XML Account(@http://webservices.samples.blog.com).
 *
 * This is a complex type.
 */
public class AccountImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.blog.samples.webservices.Account
{
    
    public AccountImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ACCOUNTNUMBER$0 = 
        new javax.xml.namespace.QName("http://webservices.samples.blog.com", "AccountNumber");
    private static final javax.xml.namespace.QName ACCOUNTNAME$2 = 
        new javax.xml.namespace.QName("http://webservices.samples.blog.com", "AccountName");
    private static final javax.xml.namespace.QName ACCOUNTBALANCE$4 = 
        new javax.xml.namespace.QName("http://webservices.samples.blog.com", "AccountBalance");
    private static final javax.xml.namespace.QName ACCOUNTSTATUS$6 = 
        new javax.xml.namespace.QName("http://webservices.samples.blog.com", "AccountStatus");
    
    
    /**
     * Gets the "AccountNumber" element
     */
    public java.lang.String getAccountNumber()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTNUMBER$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "AccountNumber" element
     */
    public org.apache.xmlbeans.XmlString xgetAccountNumber()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCOUNTNUMBER$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AccountNumber" element
     */
    public void setAccountNumber(java.lang.String accountNumber)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTNUMBER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCOUNTNUMBER$0);
            }
            target.setStringValue(accountNumber);
        }
    }
    
    /**
     * Sets (as xml) the "AccountNumber" element
     */
    public void xsetAccountNumber(org.apache.xmlbeans.XmlString accountNumber)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCOUNTNUMBER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCOUNTNUMBER$0);
            }
            target.set(accountNumber);
        }
    }
    
    /**
     * Gets the "AccountName" element
     */
    public java.lang.String getAccountName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTNAME$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "AccountName" element
     */
    public org.apache.xmlbeans.XmlString xgetAccountName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCOUNTNAME$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AccountName" element
     */
    public void setAccountName(java.lang.String accountName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCOUNTNAME$2);
            }
            target.setStringValue(accountName);
        }
    }
    
    /**
     * Sets (as xml) the "AccountName" element
     */
    public void xsetAccountName(org.apache.xmlbeans.XmlString accountName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCOUNTNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCOUNTNAME$2);
            }
            target.set(accountName);
        }
    }
    
    /**
     * Gets the "AccountBalance" element
     */
    public double getAccountBalance()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTBALANCE$4, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "AccountBalance" element
     */
    public org.apache.xmlbeans.XmlDouble xgetAccountBalance()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(ACCOUNTBALANCE$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AccountBalance" element
     */
    public void setAccountBalance(double accountBalance)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTBALANCE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCOUNTBALANCE$4);
            }
            target.setDoubleValue(accountBalance);
        }
    }
    
    /**
     * Sets (as xml) the "AccountBalance" element
     */
    public void xsetAccountBalance(org.apache.xmlbeans.XmlDouble accountBalance)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(ACCOUNTBALANCE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(ACCOUNTBALANCE$4);
            }
            target.set(accountBalance);
        }
    }
    
    /**
     * Gets the "AccountStatus" element
     */
    public com.blog.samples.webservices.EnumAccountStatus.Enum getAccountStatus()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTSTATUS$6, 0);
            if (target == null)
            {
                return null;
            }
            return (com.blog.samples.webservices.EnumAccountStatus.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "AccountStatus" element
     */
    public com.blog.samples.webservices.EnumAccountStatus xgetAccountStatus()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.blog.samples.webservices.EnumAccountStatus target = null;
            target = (com.blog.samples.webservices.EnumAccountStatus)get_store().find_element_user(ACCOUNTSTATUS$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AccountStatus" element
     */
    public void setAccountStatus(com.blog.samples.webservices.EnumAccountStatus.Enum accountStatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCOUNTSTATUS$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCOUNTSTATUS$6);
            }
            target.setEnumValue(accountStatus);
        }
    }
    
    /**
     * Sets (as xml) the "AccountStatus" element
     */
    public void xsetAccountStatus(com.blog.samples.webservices.EnumAccountStatus accountStatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.blog.samples.webservices.EnumAccountStatus target = null;
            target = (com.blog.samples.webservices.EnumAccountStatus)get_store().find_element_user(ACCOUNTSTATUS$6, 0);
            if (target == null)
            {
                target = (com.blog.samples.webservices.EnumAccountStatus)get_store().add_element_user(ACCOUNTSTATUS$6);
            }
            target.set(accountStatus);
        }
    }
}
